package com.zdy.socketserver.client;

import lombok.Data;

import java.nio.charset.StandardCharsets;

/**
 * @author myh
 * @date 2024/6/12
 */
@Data
public class NettyMsg {
    int length;
    byte[] content;

    public NettyMsg(String text) {
        this.content = text.getBytes(StandardCharsets.UTF_8);
        this.length = content.length;
    }
    public NettyMsg() {

    }
}
